package com.yfq.springframework.beans;

/**
 * @author 姚凤桥
 * @date 2023/2/7 21:09
 * @description
 */
@FunctionalInterface
public interface ObjectFactory<T> {

    /**
     * Return an instance (possibly shared or independent)
     * of the object managed by this factory.
     *
     * @return the resulting instance
     * @throws BeansException in case of creation errors
     */
    T getObject() throws BeansException;
}
